﻿<%@ Page Title="Login" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div class="title">
        Log In
    </div>
    <p>
        Please enter your username and password.
        <asp:HyperLink ID="RegisterHyperLink" runat="server"
        EnableViewState="false">Register </asp:HyperLink> if you don't have an account.
    </p>
    <asp:Login ID="LoginUser" runat="server" EnableViewState="false"
    RenderOuterTable="false"> 
        <LayoutTemplate>
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" 
            runat="server" CssClass="failureNotification"
            ValidationGroup="LoginUserValidationGroup" 
            ShowSummary="false"/>
                <div class="info">
                    <fieldset class="login">
                        <legend>Account Information</legend>
                            <p>
                                <asp:Label ID="UserNameLabel" runat="server" 
                                AssociatedControlID="UserName">Username:</asp:Label><br />
                                    <asp:TextBox ID="UserName" runat="server"
                                    CssClass="textEntry"></asp:TextBox>
                                            &nbsp;<asp:RequiredFieldValidator ID="UserNameRequired" 
                                            runat="server" ControlToValidate="UserName"
                                            CssClass="failureNotification" 
                                            ErrorMessage="User Name is required." 
                                            ToolTip="User Name is required."
                                            ValidationGroup="LoginUserValidationGroup">
                                            *</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:Label ID="PasswordLabel" runat="server" 
                                AssociatedControlID="Password">Password:</asp:Label><br />
                                <asp:TextBox ID="Password" runat="server" 
                                CssClass="passwordEntry" 
                                TextMode="Password"></asp:TextBox>
                                &nbsp;<asp:RequiredFieldValidator ID="PasswordRequired" 
                                runat="server" ControlToValidate="Password" CssClass="failureNotification" 
                                ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="LoginUserValidationGroup">
                                *</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:CheckBox ID="RememberMe" runat="server"/>
                                <asp:Label ID="RememberMeLabel" runat="server" 
                                AssociatedControlID="RememberMe" CssClass="inline">Keep me logged in</asp:Label>
                            </p>
                        </fieldset>
                        <p class="submitButton">
                            <asp:Button ID="LoginButton" runat="server" 
                            CssClass="button" CommandName="Login" Text="Log In" 
                            ValidationGroup="LoginUserValidationGroup"/>
                        </p>
                    </div>
                </LayoutTemplate>
        </asp:Login>
        <p>
            <asp:HyperLink runat="server" ID="lnkForgetPassword" NavigateUrl="~/RecoverPassword.aspx">Forgot Your Password?</asp:HyperLink>
        </p>
</asp:Content>

